if (Ti.version < 1.8) {
    alert('Sorry - this application template requires Titanium Mobile SDK 1.8 or later');
} else {
    // This is a single context application with multiple windows in a stack
    (function () {
        //determine platform and form factor and render appropriate components
        var osname = Ti.Platform.osname,
            height = Ti.Platform.displayCaps.platformHeight,
            width = Ti.Platform.displayCaps.platformWidth;

        Ti.API.info(osname + " " + height + " " + width);
        var RootView = require('view/RootView');
        var mainView = new RootView();
        mainView.open();
    })();
}